<!-- Begin Main Menu -->
<div class="ewMenu">
<?php $RootMenu = new cMenu(EW_MENUBAR_ID) ?>
<?php

// Generate all menu items
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "", -1, "", TRUE, FALSE, TRUE);
$RootMenu->AddMenuItem(4, $Language->MenuPhrase("4", "MenuText"), "clienteslist.php", 6, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}clientes'), FALSE);
$RootMenu->AddMenuItem(5, $Language->MenuPhrase("5", "MenuText"), "creditoslist.php", 6, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}creditos'), FALSE);
$RootMenu->AddMenuItem(12, $Language->MenuPhrase("12", "MenuText"), "movimientoslist.php", -1, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}movimientos'), FALSE);
$RootMenu->AddMenuItem(14, $Language->MenuPhrase("14", "MenuText"), "logprocesomensuallist.php", -1, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}logprocesomensual'), FALSE);
$RootMenu->AddMenuItem(19, $Language->MenuPhrase("19", "MenuText"), "novedadeslist.php", -1, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}novedades'), FALSE);
$RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "", -1, "", TRUE, FALSE, TRUE);
$RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "tipocreditoslist.php", 2, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}tipocreditos'), FALSE);
$RootMenu->AddMenuItem(9, $Language->MenuPhrase("9", "MenuText"), "", -1, "", TRUE, FALSE, TRUE);
$RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "provincialist.php", 9, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}provincia'), FALSE);
$RootMenu->AddMenuItem(13, $Language->MenuPhrase("13", "MenuText"), "sucursaleslist.php", 9, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}sucursales'), FALSE);
$RootMenu->AddMenuItem(15, $Language->MenuPhrase("15", "MenuText"), "nivelesmorosidadlist.php", 9, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}nivelesmorosidad'), FALSE);
$RootMenu->AddMenuItem(18, $Language->MenuPhrase("18", "MenuText"), "_menulist.php", 9, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}menu'), FALSE);
$RootMenu->AddMenuItem(16, $Language->MenuPhrase("16", "MenuText"), "usuarioslist.php", 9, "", AllowListMenu('{320446D7-E035-4611-AE9B-94BD19ABA249}usuarios'), FALSE);
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
</div>
<!-- End Main Menu -->
